e50d5c26c96aecb073e8a238b32102b29caa1b58,xwiki-core/src/main/java/com/xpn/xwiki/plugin/image/ImagePlugin.java,ImagePlugin,getWidth,#XWikiAttachment#XWikiContext#,394

Before Change



    public int getWidth(XWikiAttachment attachment, XWikiContext context) throws InterruptedException, XWikiException
    {
        Image imgOri = getImage(attachment, context);
        return imgOri.getWidth(null);
    }

After Change


     * @throws IOException if reading the image from the attachment content fails
     * @throws XWikiException if reading the attachment content fails
     */
    public int getWidth(XWikiAttachment attachment, XWikiContext context) throws IOException, XWikiException
    {
        return imageProcessor.readImage(attachment.getContentInputStream(context)).getWidth(null);
    }

    /**